#!/bin/bash

sed -i "{:begin; /\],/! {$! {N;b begin}; }; s/\"deviceType\":.*\]/\"deviceType\": \[\]/; };" $1
sed -i "{:begin; /\],/! {$! {N;b begin}; }; s/deviceType:.*\]/deviceType: \[\]/; };" $1

